﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>@ViewBag.Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
    <link href="~/Content/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <link href="~/Content/css/styles.css" rel="stylesheet" media="screen">
    <link href="~/Content/css/responsive.css" rel="stylesheet" media="screen">
    <script src="~/Scripts/js/jquery.js"></script>
    <script src="~/Scripts/js/jquery.carouFredSel-6.2.0-packed.js"></script>

    <!--[if lt IE 9]>
			<script src="~/Scripts/js/respond.min.js"></script>
		<![endif]-->
    <script src="~/Scripts/js/jquery.nhatviet.js"></script>

</head>
<body>
    <div id="divAdLeft" style="display: none; position: absolute; top: 0px; z-index: 500">
        <a target="_blank" href="#">
            <img src="~/images/data/ad1.jpg"></a>
    </div>
    <div id="divAdRight" style="display: none; position: absolute; top: 0px; z-index: 500">
        <a target="_blank" href="#">
            <img src="~/images/data/ad2.jpg"></a>
    </div>
    <!-- Header -->
    @Html.Partial("_Header")
    <!-- End Header -->
    <div class="wrapContent">
        <div class="container">
            <div class="divContent">
                @Html.Partial("_Menuleft")
                @RenderBody()
                
                <div class="clearfix"></div>
            </div>
        </div>
    </div>
    @Html.Partial("_Footer")

    <script>
        function FloatTopDiv() {
            startLX = ((document.body.clientWidth - MainContentW) / 2) - LeftBannerW - LeftAdjust, startLY = TopAdjust + 80;
            startRX = ((document.body.clientWidth - MainContentW) / 2) + MainContentW + RightAdjust, startRY = TopAdjust + 80;
            var d = document;
            function ml(id) {
                var el = d.getElementById ? d.getElementById(id) : d.all ? d.all[id] : d.layers[id];
                el.sP = function (x, y) { this.style.left = x + 'px'; this.style.top = y + 'px'; };
                el.x = startRX;
                el.y = startRY;
                return el;
            }
            function m2(id) {
                var e2 = d.getElementById ? d.getElementById(id) : d.all ? d.all[id] : d.layers[id];
                e2.sP = function (x, y) { this.style.left = x + 'px'; this.style.top = y + 'px'; };
                e2.x = startLX;
                e2.y = startLY;
                return e2;
            }
            window.stayTopLeft = function () {
                if (document.documentElement && document.documentElement.scrollTop)
                    var pY = document.documentElement.scrollTop;
                else if (document.body)
                    var pY = document.body.scrollTop;
                if (document.body.scrollTop > 30) { startLY = 3; startRY = 3; } else { startLY = TopAdjust; startRY = TopAdjust; };
                ftlObj.y += (pY + startRY - ftlObj.y) / 16;
                ftlObj.sP(ftlObj.x, ftlObj.y);
                ftlObj2.y += (pY + startLY - ftlObj2.y) / 16;
                ftlObj2.sP(ftlObj2.x, ftlObj2.y);
                setTimeout("stayTopLeft()", 1);
            }
            ftlObj = ml("divAdRight");
            //stayTopLeft();
            ftlObj2 = m2("divAdLeft");
            stayTopLeft();
        }
        function ShowAdDiv() {
            var objAdDivRight = document.getElementById("divAdRight");
            var objAdDivLeft = document.getElementById("divAdLeft");
            if (document.body.clientWidth < 1000) {
                objAdDivRight.style.display = "none";
                objAdDivLeft.style.display = "none";
            }
            else {
                objAdDivRight.style.display = "block";
                objAdDivLeft.style.display = "block";
                FloatTopDiv();
            }
        }
    </script>
    <script>
        document.write("<script type='text/javascript' language='javascript'>MainContentW = 1000;LeftBannerW = 140;RightBannerW = 140;LeftAdjust = 5;RightAdjust = 5;TopAdjust = 252;ShowAdDiv();window.onresize=ShowAdDiv;;<\/script>");
    </script>
</body>
</html>
